package com.liarjo.mywebsiteapi.admin.controller.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liarjo.mywebsiteapi.admin.controller.user.page.UserPageRequest;
import com.liarjo.mywebsiteapi.admin.controller.user.page.UserPageResult;

@RestController
@RequestMapping("/api/admin/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/page")
    public IPage<UserPageResult> page(UserPageRequest userPageRequest) {
        return userService.page(userPageRequest);
    }
}
